<?php 
// 删除消息
include './fun.php';
session_start();
$id = $_GET['id'];
$db = include './db.php';

if(@$_SESSION['username']==$db[$id]['username']){

	array_splice($db,$id,1);
	$db = var_export($db,true);
	$db = "<?php return ".$db."?>";
	file_put_contents('./db.php', $db);
	// header("Location:./wicket.php");
	mistake('删除成功','正在','./wicket.php',1);
	exit;
}
mistake('错误用户名不对不能删除','正在','./wicket.php',1);	

 ?>